package com.ilvyou.data.lcs;

import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/2/13.
 */
public class CollectAprilogEntity {
    private Long handleid;
    private Long pkid;
    private Integer appcationid;
    private String optcode;
    private String handletype;
    private String handleway;
    private Timestamp createdon;
    private String createdby;
    private String createdname;
    private String createdip;

    public Long getHandleid() {
        return handleid;
    }

    public void setHandleid(Long handleid) {
        this.handleid = handleid;
    }

    public Long getPkid() {
        return pkid;
    }

    public void setPkid(Long pkid) {
        this.pkid = pkid;
    }

    public Integer getAppcationid() {
        return appcationid;
    }

    public void setAppcationid(Integer appcationid) {
        this.appcationid = appcationid;
    }

    public String getOptcode() {
        return optcode;
    }

    public void setOptcode(String optcode) {
        this.optcode = optcode;
    }

    public String getHandletype() {
        return handletype;
    }

    public void setHandletype(String handletype) {
        this.handletype = handletype;
    }

    public String getHandleway() {
        return handleway;
    }

    public void setHandleway(String handleway) {
        this.handleway = handleway;
    }

    public Timestamp getCreatedon() {
        return createdon;
    }

    public void setCreatedon(Timestamp createdon) {
        this.createdon = createdon;
    }

    public String getCreatedby() {
        return createdby;
    }

    public void setCreatedby(String createdby) {
        this.createdby = createdby;
    }

    public String getCreatedname() {
        return createdname;
    }

    public void setCreatedname(String createdname) {
        this.createdname = createdname;
    }

    public String getCreatedip() {
        return createdip;
    }

    public void setCreatedip(String createdip) {
        this.createdip = createdip;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CollectAprilogEntity that = (CollectAprilogEntity) o;

        if (handleid != null ? !handleid.equals(that.handleid) : that.handleid != null) return false;
        if (pkid != null ? !pkid.equals(that.pkid) : that.pkid != null) return false;
        if (appcationid != null ? !appcationid.equals(that.appcationid) : that.appcationid != null) return false;
        if (optcode != null ? !optcode.equals(that.optcode) : that.optcode != null) return false;
        if (handletype != null ? !handletype.equals(that.handletype) : that.handletype != null) return false;
        if (handleway != null ? !handleway.equals(that.handleway) : that.handleway != null) return false;
        if (createdon != null ? !createdon.equals(that.createdon) : that.createdon != null) return false;
        if (createdby != null ? !createdby.equals(that.createdby) : that.createdby != null) return false;
        if (createdname != null ? !createdname.equals(that.createdname) : that.createdname != null) return false;
        if (createdip != null ? !createdip.equals(that.createdip) : that.createdip != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = handleid != null ? handleid.hashCode() : 0;
        result = 31 * result + (pkid != null ? pkid.hashCode() : 0);
        result = 31 * result + (appcationid != null ? appcationid.hashCode() : 0);
        result = 31 * result + (optcode != null ? optcode.hashCode() : 0);
        result = 31 * result + (handletype != null ? handletype.hashCode() : 0);
        result = 31 * result + (handleway != null ? handleway.hashCode() : 0);
        result = 31 * result + (createdon != null ? createdon.hashCode() : 0);
        result = 31 * result + (createdby != null ? createdby.hashCode() : 0);
        result = 31 * result + (createdname != null ? createdname.hashCode() : 0);
        result = 31 * result + (createdip != null ? createdip.hashCode() : 0);
        return result;
    }
}
